﻿//++
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
// Module Name:
//
//  ExchangeTaskContext.cs
//    
// Abstract:
//
//  This module implements the ExchangeTaskContext class.
//
//--

using System;
using System.Diagnostics;

using Microsoft.OfficeCommunicationsServer.Applications.Common;

namespace Microsoft.EnhancedReminders.Scheduler
{
    internal class ExchangeTaskContext : TaskContext
    {
        private readonly Guid _subscriptionId;

        private readonly string _watermark;

        internal ExchangeTaskContext(Context context, Guid subscriptionId, string watermark)
            : base(context)
        {
            Debug.Assert(context != null, "");
            Debug.Assert(!String.IsNullOrEmpty(watermark), "!String.IsNullOrEmpty(watermark)");

            _subscriptionId = subscriptionId;
            _watermark = watermark;
        }

        internal Guid SubscriptionId
        {
            get
            {
                return _subscriptionId;
            }
        }

        internal string Watermark
        {
            get
            {
                return _watermark;
            }
        }
    }
}
